

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>mount.fuse.ceph – 在 /etc/fstab 里挂载 ceph-fuse &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../../../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
        <script src="../../../_static/jquery.js"></script>
        <script src="../../../_static/underscore.js"></script>
        <script src="../../../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../../genindex/" />
    <link rel="search" title="Search" href="../../../search/" />
    <link rel="next" title="MDS 的各种状态" href="../../../cephfs/mds-states/" />
    <link rel="prev" title="mount.ceph – 用于挂载 Ceph 文件系统" href="../mount.ceph/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../../" class="icon icon-home"></a> &raquo;</li>
        
          <li><a href="../../../cephfs/">Ceph 文件系统</a> &raquo;</li>
        
      <li>mount.fuse.ceph – 在 /etc/fstab 里挂载 ceph-fuse</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../../../_sources/man/8/mount.fuse.ceph.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../../">
          

          
            
            <img src="../../../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../../../cephfs/">Ceph 文件系统</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../../../cephfs/#cephfs">CephFS 入门</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../cephfs/#id4">管理</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../../../cephfs/#id5">挂载 CephFS</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="../../../cephfs/client-config-ref/"> 客户端配置选项</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../cephfs/client-auth/"> 客户端认证</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../cephfs/mount-prerequisites/"> 挂载 CephFS: 前提条件</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../cephfs/mount-using-kernel-driver/"> 用内核驱动挂载 CephFS 文件系统</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../cephfs/mount-using-fuse/"> 用 FUSE 挂载 CephFS</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../cephfs/ceph-dokan/"> 在 Windows 上挂载 CephFS</a></li>
<li class="toctree-l3"><a class="reference internal" href="../cephfs-shell/"> CephFS Shell 的用法</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../cephfs/kernel-features/"> 内核驱动支持的功能</a></li>
<li class="toctree-l3"><a class="reference internal" href="../ceph-fuse/"> ceph-fuse 手册页</a></li>
<li class="toctree-l3"><a class="reference internal" href="../mount.ceph/"> mount.ceph 手册页</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#"> mount.fuse.ceph 手册页</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#id1">提纲</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id2">描述</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id3">选项</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id4">附加信息</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id5">使用范围</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id6">参考</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../cephfs/#id6">CephFS 内幕</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../cephfs/#id7">故障排除和灾难恢复</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../cephfs/#id9">更多细节</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="mount-fuse-ceph-etc-fstab-ceph-fuse">
<h1>mount.fuse.ceph – 在 /etc/fstab 里挂载 ceph-fuse<a class="headerlink" href="#mount-fuse-ceph-etc-fstab-ceph-fuse" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2>提纲<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<div class="line-block">
<div class="line"><strong>mount.fuse.ceph</strong> [-h] [-o OPTIONS [<em>OPTIONS</em> …]]
device [<em>device</em> …]
mountpoint [<em>mountpoint</em> …]</div>
</div>
</div>
<div class="section" id="id2">
<h2>描述<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<p><strong>mount.fuse.ceph</strong> 是在 <code class="docutils literal notranslate"><span class="pre">/etc/fstab</span></code> 里挂载 ceph-fuse 的一个辅助程序。</p>
<p>要用 mount.fuse.ceph ，在 <code class="docutils literal notranslate"><span class="pre">/etc/fstab</span></code> 里增加一条类似如下的：</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">DEVICE</span>    <span class="n">PATH</span>        <span class="n">TYPE</span>        <span class="n">OPTIONS</span>
<span class="n">none</span>      <span class="o">/</span><span class="n">mnt</span><span class="o">/</span><span class="n">ceph</span>   <span class="n">fuse</span><span class="o">.</span><span class="n">ceph</span>   <span class="n">ceph</span><span class="o">.</span><span class="n">id</span><span class="o">=</span><span class="n">admin</span><span class="p">,</span><span class="n">_netdev</span><span class="p">,</span><span class="n">defaults</span>  <span class="mi">0</span> <span class="mi">0</span>
<span class="n">none</span>      <span class="o">/</span><span class="n">mnt</span><span class="o">/</span><span class="n">ceph</span>   <span class="n">fuse</span><span class="o">.</span><span class="n">ceph</span>   <span class="n">ceph</span><span class="o">.</span><span class="n">name</span><span class="o">=</span><span class="n">client</span><span class="o">.</span><span class="n">admin</span><span class="p">,</span><span class="n">_netdev</span><span class="p">,</span><span class="n">defaults</span>  <span class="mi">0</span> <span class="mi">0</span>
<span class="n">none</span>      <span class="o">/</span><span class="n">mnt</span><span class="o">/</span><span class="n">ceph</span>   <span class="n">fuse</span><span class="o">.</span><span class="n">ceph</span>   <span class="n">ceph</span><span class="o">.</span><span class="n">id</span><span class="o">=</span><span class="n">myuser</span><span class="p">,</span><span class="n">ceph</span><span class="o">.</span><span class="n">conf</span><span class="o">=/</span><span class="n">etc</span><span class="o">/</span><span class="n">ceph</span><span class="o">/</span><span class="n">foo</span><span class="o">.</span><span class="n">conf</span><span class="p">,</span><span class="n">_netdev</span><span class="p">,</span><span class="n">defaults</span>  <span class="mi">0</span> <span class="mi">0</span>
</pre></div>
</div>
<p>ceph-fuse 的选项写在 <code class="docutils literal notranslate"><span class="pre">OPTIONS</span></code> 一列，且必须以 <code class="docutils literal notranslate"><span class="pre">ceph.</span></code> 打头。
这样 ceph 相关的文件系统选项就会传递给 ceph-fuse ，而其余的 ceph-fuse 会忽略。</p>
</div>
<div class="section" id="id3">
<h2>选项<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
<dl class="std option">
<dt id="cmdoption-mount.fuse.ceph-arg-ceph.id">
<span id="cmdoption-mount-fuse-ceph-arg-ceph-id"></span><code class="sig-name descname"><span class="pre">ceph.id</span></code><code class="sig-prename descclassname"><span class="pre">=&lt;username&gt;</span></code><a class="headerlink" href="#cmdoption-mount.fuse.ceph-arg-ceph.id" title="Permalink to this definition">¶</a></dt>
<dd><p>让 ceph-fuse 以给定的用户认证。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-mount.fuse.ceph-arg-ceph.name">
<span id="cmdoption-mount-fuse-ceph-arg-ceph-name"></span><code class="sig-name descname"><span class="pre">ceph.name</span></code><code class="sig-prename descclassname"><span class="pre">=client.admin</span></code><a class="headerlink" href="#cmdoption-mount.fuse.ceph-arg-ceph.name" title="Permalink to this definition">¶</a></dt>
<dd><p>让 ceph-fuse 以 client.admin 认证。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-mount.fuse.ceph-arg-ceph.conf">
<span id="cmdoption-mount-fuse-ceph-arg-ceph-conf"></span><code class="sig-name descname"><span class="pre">ceph.conf</span></code><code class="sig-prename descclassname"><span class="pre">=/etc/ceph/foo.conf</span></code><a class="headerlink" href="#cmdoption-mount.fuse.ceph-arg-ceph.conf" title="Permalink to this definition">¶</a></dt>
<dd><p>把 ceph-fuse 命令行的 conf 选项设置为 /etc/ceph/foo.conf 。</p>
</dd></dl>

<p>所有 ceph-fuse 的有效选项都可以这样传入。</p>
</div>
<div class="section" id="id4">
<h2>附加信息<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
<p>/etc/fstab 的旧格式条目也可以：</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">DEVICE</span>                              <span class="n">PATH</span>        <span class="n">TYPE</span>        <span class="n">OPTIONS</span>
<span class="nb">id</span><span class="o">=</span><span class="n">admin</span>                            <span class="o">/</span><span class="n">mnt</span><span class="o">/</span><span class="n">ceph</span>   <span class="n">fuse</span><span class="o">.</span><span class="n">ceph</span>   <span class="n">defaults</span>   <span class="mi">0</span> <span class="mi">0</span>
<span class="nb">id</span><span class="o">=</span><span class="n">myuser</span><span class="p">,</span><span class="n">conf</span><span class="o">=/</span><span class="n">etc</span><span class="o">/</span><span class="n">ceph</span><span class="o">/</span><span class="n">foo</span><span class="o">.</span><span class="n">conf</span>   <span class="o">/</span><span class="n">mnt</span><span class="o">/</span><span class="n">ceph</span>   <span class="n">fuse</span><span class="o">.</span><span class="n">ceph</span>   <span class="n">defaults</span>   <span class="mi">0</span> <span class="mi">0</span>
</pre></div>
</div>
</div>
<div class="section" id="id5">
<h2>使用范围<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
<p><strong>mount.fuse.ceph</strong> 是 Ceph 的一部分，这是个伸缩力强、开源、分布式的存储系统，更多信息参见 <a class="reference external" href="https://docs.ceph.com">https://docs.ceph.com</a> 。</p>
</div>
<div class="section" id="id6">
<h2>参考<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../ceph-fuse/"><span class="doc">ceph-fuse</span></a>(8),
<a class="reference internal" href="../ceph/"><span class="doc">ceph</span></a>(8)</p>
</div>
</div>



           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="../../../cephfs/mds-states/" class="btn btn-neutral float-right" title="MDS 的各种状态" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../mount.ceph/" class="btn btn-neutral float-left" title="mount.ceph – 用于挂载 Ceph 文件系统" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>